In [1]:
# Load the PANOPTES module dir
import sys
sys.path.append('../..')
import astropy.units as u
from astropy.time import Time
from astropy.coordinates import SkyCoord
import time
# For development
%load_ext autoreload
%autoreload 2
In [2]:
from panoptes import Panoptes
In [3]:
pan = Panoptes()
In [4]:
mount = pan.observatory.mount
mount.is_initialized = False
mount.initialize()
Out[4]:
In [53]:
mount.unpark()
mount.slew_to_home()
Out[53]:
In [50]:
mount.park()
Out[50]:
Now that we have tested that it is working, let's try to slew around to a few different targets in various locations and then move back to park.
Note: I am picking targets that are available for me right now.
In [51]:
mount.set_target_coordinates(SkyCoord.from_name('Sirius'))
Out[51]:
In [52]:
mount.unpark()
mount.slew_to_target()
Out[52]:
In [31]:
mount.status()
Out[31]:
In [32]:
mount.is_parked
Out[32]:
We notice that our coordinates stayed the same after we issued park command. That is because the park
command is non-blocking, so it issued the command but then immediately reported the coordinates.
Let's try tracking Regulus through the meridian
In [47]:
mount.set_target_coordinates(SkyCoord.from_name('Regulus'))
Out[47]:
In [48]:
mount.unpark()
mount.slew_to_target()
Out[48]:
In [42]:
mount.status()
Out[42]:
In [43]:
mount.slew_to_home()
Out[43]: